package ch.fusun.baron.map.ui.views;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;

/**
 * Shows the currently selected item in the map view
 */
public class SelectionView extends ViewPart {

	/**
	 * Id of the view
	 */
	public static final String ID = "ch.fusun.baron.map.ui.SelectionView"; //$NON-NLS-1$

	/**
	 * Empty constructor
	 */
	public SelectionView() {
	}

	@Override
	public void createPartControl(Composite parent) {
		// TODO Auto-generated method stub

	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub

	}

	/**
	 * Updates the selection display in the view
	 * 
	 * @param iSelection
	 *            The selection
	 */
	public void updateSelection(IStructuredSelection iSelection) {
		System.out.println(iSelection);
		// iSelection.getFirstElement().updateSelectionView();
	}

}
